<?php
declare(strict_types=1);

namespace App\TCP;

use App\App;
use App\GlobalData;
use App\Runtime;

class ConnectHandler
{
    public function handle(\Swoole\Server $server, int $fd): void
    {
        Runtime::print("Client: Connect.\n");
        echo "Client: Connect.\n";
        GlobalData::getMap()['wait_cons'][$fd] = time();
    }
}